#ifndef MAP_H
#define MAP_H
#include "GameEngine.h"
#include "Quadtree.h"
#include "Player.h"
namespace Advanced2D
{
	class Map
	{
	private:
		int mapWidth;
		int mapHeight;
		int** mapMatrix;
		Texture* tiles;
		QuadTree* tree;
		Player* play;
	public:
		int getMapWidth(){ return mapWidth;};
		int getMapHeight(){ return mapHeight;};
		QuadTree* getQuadtree() {return tree; }
		bool loadTilesTexture(std::string fileName);
		void readMapFromFile(std::string fileName);
		void readMapFromFileByLevel(int level);
		void buildMap();
		void draw(RECT);
		Texture* getTexture(){return tiles;};
		Map::Map();
		Player* getPlayer(){ return play;}
	};

}

extern Advanced2D::Map* mapGame;
#endif